import http from "./http"

export default {
  //钱包充值
  recharge(data) {
    return http.post("/app-api/pay/wallet-recharge/create", data)
  },
  // 获取用户钱包信息
  get() {
    return http.get("/app-api/pay/wallet/get")
  },
  /**
   * 获取用户钱包充值分页
   *
   * @param {*} params
   * @returns
   */
  page(params) {
    return http.get("/app-api/pay/wallet-recharge/page", { params })
  },

  // 获取用户提现记录
  cash_list(data) {
    return http.post("/app-api/pay/withdrawal/getUserWithdrawals", { data })
  },

  // 提现预约
  withdrawal(data) {
    return http.post("/app-api/pay/withdrawal/createWithdrawal", data)
  },
}
